package o;

import com.huawei.hmf.annotation.NamedMethod;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;

public class fgb<T> extends ffl<T> {
    public fgb(T t) {
        super(t);
    }

    public Class ˊ() {
        return null;
    }

    public String ˋ() {
        return null;
    }

    public Object ॱ(String str, Object... objArr) {
        if (ॱ() == null) {
            return null;
        }
        Object[] objArr2 = objArr;
        for (Class methods : ॱ().getClass().getInterfaces()) {
            Method[] methods2 = methods.getMethods();
            int length = methods2.length;
            int i = 0;
            while (i < length) {
                Object[] objArr3;
                Method method = methods2[i];
                NamedMethod namedMethod = (NamedMethod) method.getAnnotation(NamedMethod.class);
                if (namedMethod == null || !namedMethod.value().equals(str)) {
                    objArr3 = objArr2;
                } else {
                    try {
                        Type[] genericParameterTypes = method.getGenericParameterTypes();
                        if (genericParameterTypes.length > 0) {
                            Object[] objArr4 = new Object[genericParameterTypes.length];
                            for (int i2 = 0; i2 < genericParameterTypes.length; i2++) {
                                objArr4[i2] = ((fic) objArr2[i2]).cast(genericParameterTypes[i2]);
                            }
                            objArr2 = objArr4;
                        }
                        return method.invoke(ॱ(), objArr2);
                    } catch (IllegalAccessException e) {
                        objArr3 = objArr2;
                    } catch (InvocationTargetException e2) {
                        objArr3 = objArr2;
                    }
                }
                i++;
                objArr2 = objArr3;
            }
        }
        return null;
    }

    public void release() {
        super.release();
        Object ॱ = ॱ();
        if (ॱ != null && (ॱ instanceof fez)) {
            ((fez) ॱ).release();
        }
    }
}
